package cn.xiaye.blog.servlet;

import cn.xiaye.blog.bean.Context;
import cn.xiaye.blog.dao.ArticleDao;

@SuppressWarnings("serial")
public class DeleteArticle extends FatherServlet {

	@Override
	public String excute(Context context) {
		ArticleDao articleDao = new ArticleDao();
		String articleId = context.getRequest().getParameter("article_id");
		articleDao.delete(Integer.valueOf(articleId));
		return "ShowDeleteArticlePage";
	}

}
